Retirement gratuity calculation